/*
* Copyright (c) 2015 elion. All Rights Reserved.
*/
package com.guoyu.project.common.utils.http;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/**
 * 重新实现一个TrustManager不去检查给定的证书是否有效
 *
 * @author: xblibo  Date: 15-06-04 Time: 上午11:14
 */
public class TrustAnyTrustManager implements X509TrustManager {

	@Override
	public void checkClientTrusted(X509Certificate[] arg0, String arg1)
			throws CertificateException {

	}

	@Override
	public void checkServerTrusted(X509Certificate[] arg0, String arg1)
			throws CertificateException {

	}

	@Override
	public X509Certificate[] getAcceptedIssuers() {
		return null;
	}

}
